﻿<%@ Page Title="Orderbeheer" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="manageorders.aspx.cs" Inherits="milanov.manageorders" %>
<%-- Thom --%>
<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    <h1><%: Title %>.</h1>
    <br />
    <h3>Orderoverzicht van alle bestellingen.</h3><br />
    <p><asp:GridView ID="ordergrid" runat="server" AutoGenerateColumns="False" ShowFooter="False"
                CellPadding="10" DataKeyNames="OrderId" PageSize="100" Font-Bold="False"
                Font-Names="Verdana" Font-Size="Small" BorderColor="#CCCCCC" BorderStyle="None"
                BackColor="White" BorderWidth="1px" ForeColor="Black" GridLines="Horizontal" Height="20px" Width="900px" RowStyle-HorizontalAlign="Center">
                <Columns>
<asp:TemplateField HeaderText="Gebruiker" SortExpression="">
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%#Eval("UserName")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Email">
                        <ItemTemplate>
                            <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("Email", @"mailto:{0}") %>'
                                Text='<%#Eval("Email")%>'></asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Ordernummer" SortExpression="">
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%#Eval("OrderId")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField SortExpression="Status" HeaderText="Status">
                        <ItemTemplate>
                            <%# (Boolean.Parse(Eval("Completed").ToString())) ? "Afgehandeld" : "Openstaand" %>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <SelectedRowStyle BackColor="#999999" />
            </asp:GridView>
    </p>


</asp:Content>
